package com.example.microservice04.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用服务02式例
 *
 * @author czj
 * @date 2019/6/24 2:44 PM
 */
@FeignClient(value = "MicroService02")          //注意要调用的服务名不要写错
public interface MicroService02FeignTest {

    @GetMapping("service02/microService02Test")                         //此处名字需要和02服务的controller路径保持一致
    String microService02FeignTest(@RequestParam("str") String str);    //参数一定一定一定要加@RequestParam注解!!!

}
